Skip to content

gh-113190: Reenable non-debug interned string cleanup#113601

Merged
encukou merged 19 commits intopython:mainfrom
eduardo-elizondo:reenable_unicode_clear_interned
Aug 15, 2024
Merged

gh-113190: Reenable non-debug interned string cleanup#113601
encukou merged 19 commits intopython:mainfrom
eduardo-elizondo:reenable_unicode_clear_interned

Conversation

@eduardo-elizondo
Copy link
Contributor

@eduardo-elizondo eduardo-elizondo commented Dec 31, 2023

In GH-19474 we introduced immortalized interned strings. However, at the time, we didn't have a strict guarantee that a runtime shutdown (i.e Py_Finalize()) would completely cleanup all the allocated PyObjects (i.e a simple example of ./python -X showrefcount -c 'import itertools' would show leaks).

Today, these leaks have been largely fixed and there have been stricter guarantees into how obmalloc and the interpreter state works after a runtime shutdown. Given this, it should be safe to re-enable the interned string cleanup and revert the structseq test that had issues with this leaks before. This test should show the correctness of this code now.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

interpreter-core (Objects, Python, Grammar, and Parser dirs) skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants